using System;

namespace B.S.BaseData.Domain.Entities
{
    /// <summary>
    /// 基础实体类
    /// </summary>
    public class BaseEntity
    {
        /// <summary>
        /// 创建人ID
        /// </summary>
        public int AddId { get; set; }

        /// <summary>
        /// 创建人名称
        /// </summary>
        public string AddName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime AddTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 更新人ID
        /// </summary>
        public int UpdateId { get; set; } = 0;

        /// <summary>
        /// 更新人名称
        /// </summary>
        public string? UpdateName { get; set; } = string.Empty;

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; } = null;

        /// <summary>
        /// 删除人ID
        /// </summary>
        public int? DeleteId { get; set; } = 0;

        /// <summary>
        /// 删除人名称
        /// </summary>
        public string? DeleteName { get; set; } = string.Empty;

        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? DeleteTime { get; set; } = null;

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDelete { get; set; } = false;
    }
}